<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" type="text/css" href="/resources/css/admin/question/questionList.css">
	<script type="text/javascript" src="/resources/js/admin/question/questionList.js"></script>
	<title>/admin/question/questionList.jsp</title>
</head>
<body>
	<div id="questionlist"><br>
	<div id="top">관리자 >문제관리>문제정보페이지</div>
		<h1 id="questiontop">문제정보페이지</h1>		
	<form id="questionlisttop" action="" method="">
		<label for="subjectIdx">
			과목문제목록:
		</label>
		<select name="subjectIdx">
			<c:forEach var="subject" items="${subjectList}">
					<option value="${subject.subjectIdx}">
						${subject.subjectName}
					</option>
			</c:forEach>
		</select>
		<span id="addquestion">
			<a href="/admin/question/addQuestionForm" title="문제추가버튼">[문제추가]</a>
		</span>
	</form>
	<table>
		<tr>
			<th>문제IDX</th>
			<th>과목이름</th>
			<th>문제내용</th>
			<th>문제정답</th>
			<th>문제보기</th>
		</tr>
		<c:forEach var="question" items="${questionList}">
		<tr>
			<td>${question.questionIdx}</td>
			<td>${question.subjectName}</td>
			<td>${question.questionContent}</td>
			<td>${question.questionAnswer}</td>
			<td><a href="">[보기목록]</a></td>
		</tr>
		</c:forEach>
	</table>
	</div>
	<form id="searchbox" action="">
	    <input id="search" type="text" placeholder=" 검색어를 검색해 주세요." size="40">
	    <input id="submit" type="submit" value="Search">
	</form>	
</body>
</html>